
package edu.tongji.engine.exe;

import java.util.Map;

/**
 * @author David Fei
 *
 */
/**
 * This class maintain all informations on workflow execution.
 * It contains all variables, process instance, token and so on.
 */
public class ExecutionContext {

	// maps Token's to TokenVariableMap's
	private Long id;
	
	private String name;
	
	private ProcessInstance pi;
	
	  public Map tokenVariableMaps = null;
	// maps temp variablenames (String) to values (Object) It is not stored in DB.
	  public transient Map transientVariables = null;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ProcessInstance getPi() {
		return pi;
	}
	public void setPi(ProcessInstance pi) {
		this.pi = pi;
	}
	  
	  //private ProcessInstance pi;
	  
	 // private Token token;
	  
}
